{{ if and (.Params.comments | default .Site.Params.enableComments) (eq hugo.Environment "production") }}
{{ if or (in .Site.Params.mainSections .Section) .Params.comments }}

<div class="load-comments">
    <div id="load-comments">{{ i18n "loadComments" }}</div>
</div>

{{ if .Site.Params.enableDisqus }}
<div id="disqus_thread"></div>
{{ end }}

{{ if .Site.Params.enableValine }}
<div id="vcomments"></div>
{{ end }}

{{ if .Site.Params.enableUtterances }}
<div id="utterances"></div>
{{ end }}

{{ end }}
{{ end }}